#include <iostream>
using namespace std;

class Clock {
	private:
		int H;
		int M;
		int S;
	public:
		int SetTime(int h,int m,int s){
			this->H = h;
			this->M = m;
			this->S = s;
			
			return 0;
		}
		
		int ShowTime(){
			cout << "Now:" << H << ":" << M << ":" << S << endl;
			return 0;
		}
};

class AlarmClock:public Clock {
	private:
		int AH;
		int AM;
	public:
		int SetAlarm(int AH,int AM){
			this->AH = AH;
			this->AM = AM;
			
			return 0;
		}
		int ShowAlarm(){
			cout << "AlarmTime:" << AH << ":" << AM << endl;
			return 0;
		}
};

int main(){
	AlarmClock A;
	A.SetTime(19,15,50);
	A.ShowTime();
	A.SetAlarm(5,30);
	A.ShowAlarm();
	
	return 0;
}
